﻿using SqlSugar;

namespace Bigway.Common.Models.DbModels;

[SugarTable("eb_merchant")]
public class CrmebMerchant
{
    [SugarColumn(ColumnName = "id", IsNullable = false)]
    public int Id { get; set; }

    [SugarColumn(IsNullable = false, ColumnName = "is_del")]
    public short IsDeleted { get; set; }

    [SugarColumn(ColumnName = "phone", IsNullable = false)]
    public string Phone { get; set; }

    [SugarColumn(ColumnName = "name", IsNullable = false)]
    public string Name { get; set; }

    [SugarColumn(ColumnName = "intro", IsNullable = false)]
    public string Introduction { get; set; }

    [SugarColumn(ColumnName = "real_name", IsNullable = false)]
    public string RealName { get; set; }

    [SugarColumn(ColumnName = "province", IsNullable = false)]
    public string Province { get; internal set; }

    [SugarColumn(ColumnName = "city", IsNullable = false)]
    public string City { get; internal set; }

    [SugarColumn(ColumnName = "district", IsNullable = false)]
    public string District { get; internal set; }

    [SugarColumn(ColumnName = "address_detail", IsNullable = false)]
    public string AddressDetail { get; internal set; }

    [SugarColumn(ColumnName = "latitude", IsNullable = false)]
    public string Latitude { get; internal set; }

    [SugarColumn(ColumnName = "longitude", IsNullable = false)]
    public string Longitude { get; internal set; }

    [SugarColumn(ColumnName = "type_id", IsNullable = false)]
    public int TypeId { get; set; }

    [SugarColumn(ColumnName = "category_id", IsNullable = false)]
    public int CategoryId { get; set; }

    [SugarColumn(ColumnName = "sort", IsNullable = false)]
    public int Sort { get; set; }

    #region Images

    [SugarColumn(ColumnName = "qualification_picture", IsNullable = false)]
    public string QualificationPictures { get; set; }

    [SugarColumn(ColumnName = "back_image", IsNullable = false)]
    public string BackImage { get; set; }

    [SugarColumn(ColumnName = "avatar", IsNullable = false)]
    public string Avatar { get; set; }

    [SugarColumn(ColumnName = "rectangle_logo", IsNullable = false)]
    public string RectangleLogo { get; set; }

    [SugarColumn(ColumnName = "cover_image", IsNullable = false)]
    public string CoverImage { get; set; }

    [SugarColumn(ColumnName = "street_back_image", IsNullable = false)]
    public string StreetBackImage { get; set; }

    #endregion
}